package com.sunlands.zlcx.usercenter.service;

import org.springframework.data.util.Pair;
import org.springframework.web.multipart.MultipartFile;
import java.io.File;

public interface UploadService {
    /**
     * 鉴黄上传
     *
     * @param file         file
     * @param modelPath    modelPath
     * @param subModelPath subModelPath
     * @param needResize   needResize
     * @return
     */
    Pair<String, String> uploadOssFile(MultipartFile file, String modelPath, String subModelPath, boolean needResize);
    String uploadOssFile(File file, String modelPath, String subModelPath, boolean needResize);

    /**
     * 删除
     *
     * @param fileUrl fileUrl
     */
    void deleteFile(String fileUrl);

    void deleteFilesByDayPath(String dayPath);

}
